#include "salariedEmployee.h"

SalariedEmployee::SalariedEmployee(const string& nume,const string& prenume,const string& ssn,double wks):Employee(nume,prenume,ssn)
{setWeekSalary(wks);
}
void SalariedEmployee::setWeekSalary(double wks){
	(*this).weekSalary=(wks<0.0)?0.0:wks;
}
double SalariedEmployee::getWeekSalary()const{return (*this).weekSalary;}

double SalariedEmployee::earnings()const{return getWeekSalary();}

void	SalariedEmployee::print()const{
	std::cout<<"Salaried Employee\n";
	Employee::print();
	std::cout<<" WeekSalary= "<<getWeekSalary()<<"\n";
}

